﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using com.guojin.core.io.message;
using com.guojin.core.io;
using System;

namespace com.guojin.mj.net.message.login
{
    public class GOAway : Message
    {
        public static int TYPE = 7;
        public static int ID = 167;
        private string id;//ID
        private int clubid;//俱乐部ID
        public string Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
        public int Clubid
        {
            get
            {
                return clubid;
            }
            set
            {
                clubid = value;
            }
        }
        public static GOAway create(string id,int _id)
        {
            GOAway jc = new GOAway();
            jc.id = id;
            jc.clubid = _id;
            return jc;
        }
        public void decode(core.io.Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeString(id);
            _out.writeInt(clubid);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "id" + id;
        }
    }
}
